package top.mcwebsite.playandroid.business.qa.api

import retrofit2.http.GET
import retrofit2.http.Path
import top.mcwebsite.playandroid.business.articles.api.model.ArticleModel
import top.mcwebsite.playandroid.business.qa.model.QAReplayComment
import top.mcwebsite.playandroid.common.network.model.ApiResult
import top.mcwebsite.playandroid.common.network.model.PageModel
import top.mcwebsite.playandroid.common.network.model.RespModel

interface QAApiService {

    @GET("wenda/list/{page}/json")
    suspend fun qaList(@Path("page") page: Int): RespModel<PageModel<ArticleModel>>

    @GET("wenda/comments/{id}/json")
    suspend fun qaComment(@Path("id") id: Long): ApiResult<RespModel<PageModel<QAReplayComment>>>
}